package com.lq.educationsystem.teacher.mapper;

import com.lq.educationsystem.teacher.entiy.TeacherTb;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【teacher_tb】的数据库操作Mapper
* @createDate 2024-04-14 16:58:43
* @Entity com.lq.educationsystem.teacher.entiy.TeacherTb
*/
public interface TeacherTbMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TeacherTb record);

    int insertSelective(TeacherTb record);

    TeacherTb selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TeacherTb record);

    int updateByPrimaryKey(TeacherTb record);

    List<TeacherTb> queryList(@Param("start") int start,@Param("pageSize") Integer pageSize,@Param("teacherTb") TeacherTb teacherTb);

    int queryCount(@Param("teacherTb") TeacherTb teacherTb);

    List<TeacherTb> queryBatchTeacherInfoByTeacherIdList(@Param("teacherIdListInfo") List<Integer> teacherIdListInfo);

    /**
     * 通过账号查询用户信息
     * @param teacherInfo
     * @return
     */
    TeacherTb queryTeacherInfoByTeacherAccount(@Param("teacherInfo") TeacherTb teacherInfo);
}
